package com.awesome.javademo.threads.lock.volatil;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2021/8/11 8:23 上午
 * Description:类描述
 */
public class VolatileTest {
    public volatile int inc = 0;

    public static void main() {
        while (Thread.activeCount() > 2) {
            Thread.yield();
        }
    }
} 